package arrary;

/**
 * @author zhaoziqiang
 * @Description:
 * @date 2020/8/13 19:56
 */
public class Student {
    private String name;
    private Integer age;

    public Student(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" + "name='" + name + '\'' + ", age=" + age + '}';
    }

    public static void main(String[] args) {
        Student stu1 = new Student("james", 1);
        Student stu2 = new Student("jame2", 2);
        Student stu3 = new Student("james3", 3);
        Array<Student> studentArray = new Array<>();
        studentArray.addLast(stu1);
        studentArray.addLast(stu2);
        studentArray.addLast(stu3);
        System.out.println(studentArray);
    }
}
